/**
 * author: XGP
 * date: 2018/09/20
 * des: 通讯录
 */
import request from '@/utils/request'

/**
 * 根据员工号或者员工ID模糊搜索员工
 */
export function searchListApi(params) {
  return request({
    url: '/employeesearchhistorys/queryEmplList',
    method: 'get',
    params: params
  })
}

/**
 * 搜索历史
 */
export function getSearchHistoryApi() {
  return request({
    url: '/employeesearchhistorys/findAll',
    method: 'get'
  })
}

/**
 * 获取员工信息
 */
export function getFindEmplInfoApi(params) {
  return request({
    url: '/employeesearchhistorys/findEmplInfo',
    method: 'get',
    params: params
  })
}

/**
 * 记录搜索历史
 */
export function addEmpHistoryApi(params) {
  return request({
    url: '/employeesearchhistorys/insert',
    method: 'post',
    params: params
  })
}
